<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
    xmlns:p="http://primefaces.org/ui"
    template="/layout/template/template.xhtml">

	<h:form id="formulario">
		<p:panel styleClass="divSenha" header="Alterar Senha" closable="true" closeSpeed="2000" widgetVar="janela">
			<p:panelGrid columns="2">
				<h:outputText value="Senha Antiga:" />
				<h:inputSecret value="#{identity.password}" />
				<h:outputText value="Senha Nova:" />
				<h:inputSecret value="#{identity.newPassword}" />
				<h:outputText value="Confirme a Senha Nova:" />
				<h:inputSecret value="#{identity.newPassword2}" />
			</p:panelGrid>
			<p:commandButton action="#{identity.alterarSenha}" value="Salvar" update=":growl, :formulario"/>
		</p:panel>
	</h:form>

</ui:composition>
